package golang

import "fmt"

func main() {

	//range 遍历数组
	var arr = [...]int{1, 2, 3}
	for i, v := range arr {
		fmt.Println(i, v)
	}

	//for循环遍历数组
	for i := 0; i < len(arr); i++ {
		fmt.Println(arr[i])
	}

}
